home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
c
/
sozobon
/
sozlib15.zoo
/
sozdistr
/
include
/
xdlibs
/
assert.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-08-28
|
359 b
|
20 lines
/*
* @(#)assert.h XdLibs, SozobonX
*
*
*/
#ifndef _ASSERT_H
#define _ASSERT_H
#ifdef NDEBUG
#define assert(cond)
#else
#include <stdio.h>
static char __AssertFmt[] = "assert failed in '%s' at line %d.\n";
#define assert(cond) if(!(cond)) \
{ fprintf(stderr, __AssertFmt, __FILE__, __LINE__); exit(-1); }
#endif /* NDEBUG */
#endif /* _ASSERT_H */